import {createRouter,createWebHistory}from "vue-router";


import LoginView from "@/views/LoginView.vue";
import ChatView from "@/views/ChatView.vue";


const routes=[
    {
        path:'/login',
        component:LoginView,

    },
    {
        path:'/chat',
        component:ChatView
    },
    {
        path:'/',
        redirect:'/login'
    }

];

const router =createRouter({
    history:createWebHistory(),
    routes
});

export default router;